package com.hzdl.apple.service.back;

import java.util.List;

import com.hzdl.apple.bean.Good;
import com.hzdl.apple.dao.back.BackGoodsDao;
import com.hzdl.apple.dao.imp.back.BackGoodsDaoImp;

public class BackGoodsService {
	BackGoodsDao dao;
	public BackGoodsService(){
		dao = new BackGoodsDaoImp();
	}
	public boolean addGoods(Good good) {
		return dao.addGoods(good);
	}
	
	public List<Good> getAllGoods(){
		return dao.getAllGoods();
	}
	public boolean deleteGoods(String GoodsID) {
		return dao.deleteGoods(GoodsID);
	}
	
	public boolean updateGoods(String GoodsID, Good good) {
		return dao.updateGoods(GoodsID, good);
	}
	
	public int getGoodsNum() {
		return dao.getGoodsNum();
	}
}
